package com.situ.blog.service.Impl;

import com.situ.blog.dao.IBlogDao;
import com.situ.blog.dao.Impl.BlogDaoImpl;
import com.situ.blog.pojo.enity.Blog;
import com.situ.blog.pojo.query.BlogQuery;
import com.situ.blog.service.IBlogService;

import java.util.List;

public class BlogServiceImpl implements IBlogService {
    private IBlogDao blogDao = new BlogDaoImpl();


    @Override
    public Blog selectById(Integer id) {
        return blogDao.selectById(id);
    }

    @Override
    public List<Blog> selectByType(BlogQuery blogQuery) {
        return blogDao.selectByType(blogQuery);
    }
}
